package com.guofen.service.name;

import com.guofen.pojo.Name;

import java.util.List;
import java.util.Map;

public interface NameService {
    Map<String, Object> getAllName(int pageSize, int currentPage);
    Map<String, Object> getByName(String name, int pageSize, int currentPage);
    Map<String, Object> getByGrade1(int grade1, int grade2, int pageSize, int currentPage);
    Map<String, Object> getByGrade2(int grade1, int grade2, int pageSize, int currentPage);
    Map<String, Object> getByGrade3(int grade1, int grade2, int pageSize, int currentPage);
    Name getByName(String name);
    int delete(String name);
    int update(Name name);
    int insert(Name name);
}
